#ifndef IPLINEEDIT_H
#define IPLINEEDIT_H

#include <QLineEdit>
#include<QEvent>
#include<QLabel>
#define IP_INPUT_SIZE 4
class IPLineEdit : public QLineEdit
{
public:
    IPLineEdit(QWidget*parent=0);
    ~IPLineEdit();
      QString text();
int getIndex(QLineEdit*line);
private:
    QLineEdit*m_lineEidt[4];//IPv4点分十进制的方法
protected:
    bool eventFilter(QObject*obj,QEvent*event);

};
class QIconLineEdit:public QLineEdit{
    Q_OBJECT
public:
    QIconLineEdit(QWidget *parent = 0);

    ~QIconLineEdit();


    void SetIcon(const QPixmap &pixmap);

private:
    QLabel*labelPixmap;
};

#endif // IPLINEEDIT_H
